package com.stadium.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.util.Date;

/**
 * 规则细则
 *
 * @author zq
 * @email 513973172@qq.com
 * @date 2020-01-31 15:13:39
 */
@Data
@ApiModel(value = "规则细则Vo")
public class RRuleDetailVo {
    private static final long serialVersionUID = 1L;
    //id
    @Length(min = 0, max = 36)
    @ApiModelProperty(value = "id")
    private String id;
    //规则表id
    @Length(min = 0, max = 36)
    @ApiModelProperty(value = "规则表id")
    private String ruleId;
    //规则分类
    @Length(min = 0, max = 10)
    @ApiModelProperty(value = "规则分类")
    private String category;
    //规则内容
    @Length(min = 0, max = 1000)
    @ApiModelProperty(value = "规则内容")
    private String content;
    //规则code
    @Length(min = 0, max = 20)
    @ApiModelProperty(value = "规则code")
    private String code;
    //计量单位
    @Length(min = 0, max = 50)
    @ApiModelProperty(value = "计量单位")
    private String unit;
    //状态码（0：正常，1：异常）
    @Length(min = 0, max = 10)
    @ApiModelProperty(value = "状态码（0：正常，1：异常）")
    private String statusCode;
    //删除码（0：正常 1：删除）
    @Length(min = 0, max = 10)
    @ApiModelProperty(value = "删除码（0：正常 1：删除）")
    private String deleteCode;
    //备注
    @Length(min = 0, max = 255)
    @ApiModelProperty(value = "备注")
    private String remark;
    //更新时间
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

}
